﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace VehicleMaintenance.Models
{
    public class OtherExpenditure
    {
        [Key]
        [Column("ID")]
        public int RecordID { get; set; }

        [Display(Name = "日期")]
        [Required(ErrorMessage = "请填写日期")]
        public string Date { get; set; }

        [Display(Name = "支出种类")]
        [Required(ErrorMessage = "请填写支出种类")]
        public string Type { get; set; }

        [Display(Name = "支出金额")]
        [Required(ErrorMessage = "请填写支出金额")]
        public decimal Amount { get; set; }

        [Display(Name = "计量单位")]
        [Required(ErrorMessage = "请输入计量单位")]
        public string Units { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }        
    }
}
